<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class content_model extends CI_Model	 {
	function __construct() {
		// Call the Model constructor
		parent::__construct();
		$this->load->database();
	}
	function get_all_content() {
		$this->db->order_by("iID","DESC");
		$query = $this->db->get('tbl_content');
		if ($query->num_rows() > 0) {
			return $query->result();
		}
		return $query->result();
	}
}
